package org.iku.common;

import java.util.HashSet;
import java.util.Set;

public class FieldOption {
	
	private static Set<String> itemStoreFields;
	
	private static Set<String> notAnalyzedFields;
	
	public static void init(){
		
		if(null == itemStoreFields){
			itemStoreFields = new HashSet<String>();
			itemStoreFields.add("id");
		}
		
		if(null == notAnalyzedFields){
			notAnalyzedFields = new HashSet<String>();
			notAnalyzedFields.add("id");
		}
		
	}
	
	public static boolean needStore(String field){
		return itemStoreFields.contains(field);
	}
	
	public static boolean needAnalyze(String field){
		return !notAnalyzedFields.contains(field);
	}
	
}
